package com.icloud.framework.exception;

import org.springframework.validation.FieldError;

public class ValidFieldError {
	private String field;
	private String message;

	public ValidFieldError(FieldError error) {
		this.field = error.getField();
		this.message = error.getDefaultMessage();
	}

	public String getField() {
		return field;
	}

	public void setField(String field) {
		this.field = field;
	}
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
}
